package com.link2room.aeriabots.controller.inside;

import com.link2room.aeriabots.dto.result.base.WXOfficialAccountInfoDto;
import com.link2room.aeriabots.facade.IWXComponentFacadeService;
import com.link2room.common.dto.result.base.BaseResultDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by LN on 2017/3/03.
 */
@Api(tags ={"微信开放平台appid"} )
@RestController
@RequestMapping("/in/WxComponentAppid")
public class WxComponentInfoInsideController {
    @Resource
    private IWXComponentFacadeService wxComponentFacadeService;

    @ApiOperation(value="微信开放平台appid",response = WXOfficialAccountInfoDto .class)
    @ApiImplicitParams(value = {
    })
    @RequestMapping(method = RequestMethod.GET)
    public BaseResultDto getWxComponentAppid(
    ) throws Exception {
        BaseResultDto res = new BaseResultDto();
        res.setResultInfo(wxComponentFacadeService.getWxComponentAppid());
        res.setResultCode(0);
        return res;
    }
}
